import { Row, Col } from 'tdesign-mobile-react';
import { useNavigate } from 'react-router-dom';
import { ArrowLeftIcon } from "tdesign-icons-react";
import "./index.scss";


function BackBtn() {
    let navigator = useNavigate();
    function clickHandle() { navigator(-1); }
    return (<>
        <div className='top-head'>
            
            <Row className='top-row'>
                <Col>
                    <ArrowLeftIcon onClick={clickHandle} />
                </Col>
            </Row>
        </div>
    </>)
}

export default BackBtn